package com.ecocent.common.exception;

public class ServiceException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	private String errorCode;
	private String errorMessage;
	public ServiceException(String errorCode,String errorMessage){
		super(errorMessage);
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}
	public ServiceException(Exception e)  
    {   
        super(e);  
        this.errorMessage = e.getMessage();
    }  
	public ServiceException(String msg)  
    {   
        super(msg);  
        this.errorMessage = msg;
    }  
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

}
